package cn.edu.xhu.library_management.book.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 图书表
 * @TableName lm_book
 */
@TableName(value ="lm_book")
@Data
public class LmBook implements Serializable {
    /**
     * 图书id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 书名
     */
    @TableField(value = "bo_name")
    private String boName;

    /**
     * 图片地址
     */
    @TableField(value = "bo_image")
    private String boImage;

    /**
     * 简介
     */
    @TableField(value = "bo_intro")
    private String boIntro;

    /**
     * 作者
     */
    @TableField(value = "bo_author")
    private String boAuthor;

    /**
     * ISBN编码
     */
    @TableField(value = "bo_isbn")
    private String boIsbn;

    /**
     * 出版社
     */
    @TableField(value = "bo_press")
    private String boPress;

    /**
     * 定价
     */
    @TableField(value = "bo_bid")
    private Double boBid;

    /**
     * 库存
     */
    @TableField(value = "bo_stock")
    private Integer boStock;

    /**
     * 书架Id
     */
    @TableField(value = "br_id")
    private Integer brId;

    /**
     * 分类ID
     */
    @TableField(value = "bc_id")
    private Long bcId;

    /**
     * 书架层数
     */
    @TableField(value = "br_row")
    private Integer brRow;

    /**
     * 创建时间
     */
    @TableField(value = "bo_creat_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "GMT+8")
    private Date creatTime;

    /**
     * 更新时间
     */
    @TableField(value = "bo_up_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}